package com.leejxx.health.service;

import com.leejxx.health.entity.PageResult;
import com.leejxx.health.entity.QueryPageBean;
import com.leejxx.health.pojo.Role;
import com.leejxx.health.pojo.User;

import java.util.LinkedHashSet;
import java.util.List;

/**
 * @Author LeeJx
 * @ClassName UserService
 * @Description TODO
 * @date 2020/12/29 16:50
 * @Version 1.0
 */
public interface UserService {

    User findByUsername(String username);

    PageResult findByPage(QueryPageBean queryPageBean);

    LinkedHashSet<Role> findAllRoles();

    void addUser(User user, List<Integer> roleIds);

    User findUserById(Integer userId);

    void edit(User user, List<Integer> roleIds);

    void deleteById(Integer userId);

    String findUsernameByUserId(Integer userId);

    void editPassword(User user);
}
